#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void singledog(int* arr,int sz) {
	for (int n = 0; n < sz; n++)
	{
		int o = 0;
		for (int m = n + 1; m < sz; m++)
		{
			if (*(arr + n) == *(arr + m))
			{
				for (int cmp = m; cmp < sz - 1; cmp++)
				{
					*(arr + cmp) = *(arr + cmp + 1);
				}
				sz -= 1;
				o += 1;
			}
		}
		if (o == 0)
			printf("%d ", *(arr + n));
	}
}
int main()
{
	int arr[] = { 1,2,3,4,5,6,7,1,3,5,7 };
	singledog(arr, sizeof(arr)/sizeof(arr[0]));
	return 0;
}